home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Graphismes / 3D / POV-Ray 3.0B5a PPC / POV-Ray 3.0B5a / POVSCN.Scenes / POVSCN / LEVEL1 / CLIPTST2.POV < prev    next >
Text File  |  1995-11-08  |  2KB  |  100 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Clipped_by example
  3.  
  4. #version 3.0
  5. global_settings { assumed_gamma 2.2 }
  6.  
  7. #include "colors.inc"           // Standard colors library
  8. #include "textures.inc"         // LOTS of neat textures.  Lots of NEW textures.
  9.  
  10. camera {
  11.    location <2.0, 4, -4>
  12.    direction <0.0, 0.0, 1.5>
  13.    up  <0.0, 1.0, 0.0>
  14.    right <4/3, 0.0, 0.0>
  15.    look_at <0, 0, 0>
  16. }
  17.  
  18.  
  19. // Light source
  20. #declare Grayscale = 0.25
  21. #declare AmbientLight = color red Grayscale green Grayscale blue Grayscale
  22.  
  23. light_source { <-20, 30, -100> color White }
  24.  
  25. light_source { <50, 50 ,15> color AmbientLight }
  26.  
  27.  
  28. // A hollow sphere using a clipping plane.  This sphere has no "thickness"
  29. // to its walls,  no matter what the scaling.
  30. sphere { <0, 0, 0>, 1
  31.    clipped_by { plane { <0, 1, 0>, 0.25 } }
  32.  
  33.    finish {
  34.       Phong_Glossy
  35.       ambient 0.2
  36.    }
  37.  
  38.    pigment {
  39.       gradient <1, 1, 1>
  40.       // Notice the -1 to +1 color range.  This is just to demonstrate
  41.       // that this is a valid form for a color map.  It's not really
  42.       // neccessary in this case to do it this way, but thought I'd
  43.       // use it for instructional value.
  44.       color_map {
  45.          [-1.0 0.0 color Yellow color Cyan ]
  46.          [ 0.0 1.0 color Cyan color Magenta]
  47.       }
  48.       scale <0.1, 0.1, 0.1>
  49.    }
  50.  
  51.    translate <-2, 1, 0>
  52. }
  53.  
  54. // Hollow sphere done with intersection.
  55. intersection {
  56.    sphere { <0, 0, 0>, 1 }                // outer wall
  57.    sphere { <0, 0, 0>, 0.85 inverse }     // inner wall
  58.    plane { <0, 1, 0>, 0.25 }              // top surface
  59.  
  60.    finish {
  61.       Phong_Glossy
  62.       ambient 0.2
  63.    }
  64.    pigment {
  65.       leopard
  66.       color_map {
  67.          [0.0   0.10 color Yellow color Red ]
  68.          [0.10  0.98 color Red color Blue ]
  69.          [0.98  1.00 color Magenta color Yellow  ]
  70.       }
  71.       //        scale <0.05, 1.0, 0.05>
  72.       scale <0.025, 1.0, 0.025>
  73.    }
  74.  
  75.    translate <2, 1, 0>
  76. }
  77.  
  78. // Flat-topped sphere/plane intersection
  79. intersection {
  80.    sphere { <0, 0, 0>, 1 }               // outer wall
  81.    plane { <0, 1, 0>, 0.25 }             // top surface
  82.  
  83.    finish {
  84.       Phong_Glossy
  85.       ambient 0.2
  86.    }
  87.    pigment {
  88.       onion
  89.       turbulence 10                      // try with 0 turb, too!
  90.       octaves 2
  91.       color_map {
  92.          [0.0   0.30 color Yellow color Orange ]
  93.          [0.30  0.90 color Orange color Magenta ]
  94.          [0.90  1.00 color Blue color Green    ]
  95.       }
  96.    }
  97.  
  98.    translate <0, 1, -1>
  99. }
  100.